From: Florian Müllner Date: Mon, 17 Sep 2012 16:11:27 +0000 (+0200) Subject: grabHelper: Set _grabbedFromKeynav X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5844 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f6645a41d2059761c870ca71d342fa74619081dd;p=gnome-shell.git grabHelper: Set _grabbedFromKeynav This one got lost in commit b203a95a7. https://bugzilla.gnome.org/show_bug.cgi?id=683546 --- diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index fee72c51e..6af5480a8 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -203,7 +203,7 @@ const GrabHelper = new Lang.Class({ global.sync_pointer(); }, - _takeFocusGrab: function() { + _takeFocusGrab: function(hadFocus) { let firstGrab = (this._grabFocusCount == 0); this._grabFocusCount++; if (!firstGrab) @@ -211,6 +211,7 @@ const GrabHelper = new Lang.Class({ let metaDisplay = global.screen.get_display(); + this._grabbedFromKeynav = hadFocus; this._preGrabInputMode = global.stage_input_mode; this._prevFocusedWindow = metaDisplay.focus_window;